//
//  ViewControllerImpl.h
//  CPetro
//
//  Created by ggx on 2017/3/8.
//  Copyright © 2017年 高广校. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Masonry.h>
#import "Service.h"
#import "HUDHelper.h"
#import "BaseTableView.h"
typedef enum : NSUInteger {
    TablePlain = 0,
    TableGroup,
} TableStyle;//tableView的样式

@interface ViewControllerImpl : UIViewController<UITableViewDelegate,UITableViewDataSource>

///初始化集合视图
@property (nonatomic, assign) BOOL initclt;

/// 统一跳转参数
@property (nonatomic, strong) NSDictionary *params;

///tablew
@property (nonatomic,strong) BaseTableView *baseTable;
///tab样式
@property (nonatomic,assign) TableStyle tabStyle;
///当前页码
@property (nonatomic,assign) NSInteger currentPage;
//tab数据源
@property (nonatomic, strong) NSArray *dataArray;

@property (nonatomic,assign) BOOL isUserEmptyView;


@property (nonatomic, strong) UIView * topView;
@property (nonatomic, strong) UIButton * leftButton;
@property (nonatomic, strong) UILabel * titlelabel;
@property (nonatomic, strong) UIButton * rightButton;
@property (nonatomic, strong) UIView * bottomLine;
@property(nonatomic,copy,readwrite)NSString *navigationItemTitle;

///返回是否需要刷新界面
@property (nonatomic, copy) void(^isBackNeedrefresh)(void);

-(void)Init;

- (void)hideKeyBoard;

-(void)configureBarWithTtitle:(NSString *)title;

-(void)rightClick;

/**
 加载网络请求

 @param animated <#animated description#>
 @param title <#title description#>
 @param block <#block description#>
 @param completion <#completion description#>
 */
- (void)showAnimated:(BOOL)animated title:(NSString *)title whileExecutingBlock:(CGDataResult *(^)())block completionBlock:(void(^)(BOOL b,CGDataResult *r))completion;

///搭配下拉刷新
-(void)refreshView;

-(void)loadMore;

- (void)addMoreData:(NSArray *)loadArr andLastPage:(NSInteger)lastPage;
@end
